# Project: Synergy
# Makefile created by Dev-C++ 4.9.9.2
PLATFORM = LINUX
CPP  = g++
BIN  = SimSynergy.exe
CXXFLAGS = $(CXXINCS) -D$(PLATFORM) -Wall -O2
VPATH = physics;render
OBJ = physics/PhysicsVector.cpp.o physics/PhysicsQuaternion.cpp.o physics/PhysicsObject.cpp.o physics/PhysicsBall.cpp.o physics/PhysicsBox.cpp.o physics/PhysicsPlane.cpp.o render/OpenGL.cpp.o main.cpp.o
ifeq ($(PLATFORM),WINDOWS)
	MULTI_CMD = &&
	LIBS =  -L"C:/Dev-Cpp/lib" -lglut32 -lglu32 -lopengl32 -lwinmm -lgdi32
	COMPILERINCS = -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"
else
	MULTI_CMD = ;
	LIBS = -lGL -lGLU -lglut
	COMPILERINCS = 
endif
CXXINCS =  $(COMPILERINCS) -I"./include"
.PHONY: all clean clobber

all: $(BIN)

clean:
	${RM} $(BIN) *.cpp.o
	(cd physics $(MULTI_CMD) ${RM} *.cpp.o)
	(cd render $(MULTI_CMD) ${RM} *.cpp.o)
	(cd include $(MULTI_CMD) ${RM} *.cpp.o)
clobber: clean

$(BIN):	$(OBJ)
	$(CPP) $^ -o "$(BIN)" $(LIBS)
%.cpp.o:	%.cpp Makefile
	$(CPP) -c $*.cpp -o $*.cpp.o $(CXXFLAGS)
%.cpp:	include/$*.h
	touch $@
